﻿// MT207




using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.Collections.Generic;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category2
{
  public class MT207 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagSequenceDefinition U0002;
    private static SwiftTagDefinition U0003;
    private static SwiftTagSubItemDefinition U0004;
    private static SwiftTagDefinition U0005;
    private static SwiftTagSubItemDefinition U0006;
    private static SwiftTagDefinition U0007;
    private static SwiftTagSubItemDefinition U0008;
    private static SwiftTagSubItemDefinition U000E;
    private static SwiftTagDefinition U000F;
    private static SwiftTagSubItemDefinition U0010;
    private static SwiftTagDefinition U0011;
    private static SwiftTagSubItemDefinition U0012;
    private static SwiftTagSubItemDefinition U0013;
    private static SwiftTagDefinition U0014;
    private static SwiftTagSubItemDefinition U0015;
    private static SwiftTagSubItemDefinition U0016;
    private static SwiftTagChoiceDefinition U0017;
    private static SwiftTagDefinition U0018;
    private static SwiftTagSubItemDefinition U0019;
    private static SwiftTagSubItemDefinition U001A;
    private static SwiftTagDefinition U001B;
    private static SwiftTagSubItemDefinition U001C;
    private static SwiftTagDefinition U001D;
    private static SwiftTagSubItemDefinition U001E;
    private static SwiftTagSubItemDefinition U001F;
    private static SwiftTagSubItemDefinition U007F;
    private static SwiftTagSubItemDefinition U0080;
    private static SwiftTagSubItemDefinition U0081;
    private static SwiftTagSubItemDefinition U0082;
    private static SwiftTagSequenceDefinition U0083;
    private static SwiftTagDefinition U0084;
    private static SwiftTagSubItemDefinition U0086;
    private static SwiftTagDefinition U0087;
    private static SwiftTagSubItemDefinition U0088;
    private static SwiftTagSubItemDefinition U0089;
    private static SwiftTagSubItemDefinition U008A;
    private static SwiftTagDefinition U008B;
    private static SwiftTagSubItemDefinition U008C;
    private static SwiftTagSubItemDefinition U008D;
    private static SwiftTagChoiceDefinition U008E;
    private static SwiftTagDefinition U008F;
    private static SwiftTagSubItemDefinition U0090;
    private static SwiftTagSubItemDefinition U0091;
    private static SwiftTagDefinition U0092;
    private static SwiftTagSubItemDefinition U0093;
    private static SwiftTagSubItemDefinition U0094;
    private static SwiftTagChoiceDefinition U0095;
    private static SwiftTagDefinition U0096;
    private static SwiftTagSubItemDefinition U0097;
    private static SwiftTagSubItemDefinition U0098;
    private static SwiftTagDefinition U0099;
    private static SwiftTagSubItemDefinition U009A;
    private static SwiftTagDefinition U009B;
    private static SwiftTagSubItemDefinition U009C;
    private static SwiftTagSubItemDefinition U009D;
    private static SwiftTagChoiceDefinition U009E;
    private static SwiftTagDefinition U009F;
    private static SwiftTagSubItemDefinition U0001U0002;
    private static SwiftTagSubItemDefinition U0002U0002;
    private static SwiftTagDefinition U0003U0002;
    private static SwiftTagSubItemDefinition U0004U0002;
    private static SwiftTagSubItemDefinition U0005U0002;

    [Description("General Information")]
    public MT207.SequenceAClass SequenceA
    {
      get
      {
        return new MT207.SequenceAClass((SwiftElement) this, 0, false);
      }
    }

    [Description("Transaction Details")]
    public MT207.SequenceBClass[] SequenceB
    {
      get
      {
        int index = -1;
        List<MT207.SequenceBClass> list = new List<MT207.SequenceBClass>();
        int count;
        do
        {
          ++index;
          MT207.SequenceBClass sequenceBclass = new MT207.SequenceBClass((SwiftElement) this, index, false);
          count = this.ListTags((SwiftElement) sequenceBclass).Count;
          if (count > 0)
            list.Add(sequenceBclass);
        }
        while (count > 0);
        return list.ToArray();
      }
    }

    public MT207()
      : base(true)
    {
    }

    public MT207(SwiftMessage message)
      : base(message)
    {
    }

    public MT207.SequenceBClass AddSequenceB()
    {
      return new MT207.SequenceBClass((SwiftElement) this, this.SequenceB.Length, true);
    }

    public void RemoveSequenceB(MT207.SequenceBClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT207.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT207.MessageDefinition = new SwiftMessageDefinition("MT207", "Request for Financial Institution Transfer");
      MT207.U0002 = new SwiftTagSequenceDefinition("SequenceA", "General Information");
      MT207.U0003 = new SwiftTagDefinition("SendersReference_A_20", "Sender’s Reference");
      MT207.U0003.TagName = ":20:";
      MT207.U0004 = new SwiftTagSubItemDefinition("Reference", "Reference Number");
      MT207.U0003.Elements.Add((SwiftDefinitionElement) MT207.U0004);
      MT207.U0002.Elements.Add((SwiftDefinitionElement) MT207.U0003);
      MT207.U0005 = new SwiftTagDefinition("SpecifiedReferenceOfTheOrderingInstitution_A_21R", "Specified Reference of the Ordering Institution");
      MT207.U0005.TagName = ":21R:";
      MT207.U0005.Mandatory = false;
      MT207.U0006 = new SwiftTagSubItemDefinition("Reference", "Reference Number");
      MT207.U0005.Elements.Add((SwiftDefinitionElement) MT207.U0006);
      MT207.U0002.Elements.Add((SwiftDefinitionElement) MT207.U0005);
      MT207.U0007 = new SwiftTagDefinition("MessageIndexTotal_A_28D", "Message Index/Total");
      MT207.U0007.TagName = ":28D:";
      MT207.U0008 = new SwiftTagSubItemDefinition("MessageIndex", "Message Index");
      MT207.U0007.Elements.Add((SwiftDefinitionElement) MT207.U0008);
      MT207.U000E = new SwiftTagSubItemDefinition("Total", "Total");
      MT207.U0007.Elements.Add((SwiftDefinitionElement) MT207.U000E);
      MT207.U0002.Elements.Add((SwiftDefinitionElement) MT207.U0007);
      MT207.U000F = new SwiftTagDefinition("RequestedExecutionDate_A_30", "Requested Execution Date");
      MT207.U000F.TagName = ":30:";
      MT207.U0010 = new SwiftTagSubItemDefinition("Date", "Date");
      MT207.U000F.Elements.Add((SwiftDefinitionElement) MT207.U0010);
      MT207.U0002.Elements.Add((SwiftDefinitionElement) MT207.U000F);
      MT207.U0011 = new SwiftTagDefinition("InitiatingInstitution_A_51A", "Initiating Institution");
      MT207.U0011.TagName = ":51A:";
      MT207.U0011.Mandatory = false;
      MT207.U0012 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT207.U0012.Mandatory = false;
      MT207.U0011.Elements.Add((SwiftDefinitionElement) MT207.U0012);
      MT207.U0013 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT207.U0011.Elements.Add((SwiftDefinitionElement) MT207.U0013);
      MT207.U0002.Elements.Add((SwiftDefinitionElement) MT207.U0011);
      MT207.U0014 = new SwiftTagDefinition("OrderingInstitution_A_52G", "Ordering Institution");
      MT207.U0014.TagName = ":52G:/";
      MT207.U0015 = new SwiftTagSubItemDefinition("Account", "Account");
      MT207.U0014.Elements.Add((SwiftDefinitionElement) MT207.U0015);
      MT207.U0016 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT207.U0014.Elements.Add((SwiftDefinitionElement) MT207.U0016);
      MT207.U0002.Elements.Add((SwiftDefinitionElement) MT207.U0014);
      MT207.U0017 = new SwiftTagChoiceDefinition("Choice", "");
      MT207.U0017.Mandatory = false;
      MT207.U0017.Multiple = true;
      MT207.U0018 = new SwiftTagDefinition("AccountServicingInstitution_A_52A", "Account Servicing Institution");
      MT207.U0018.TagName = ":52A:";
      MT207.U0019 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT207.U0019.Mandatory = false;
      MT207.U0018.Elements.Add((SwiftDefinitionElement) MT207.U0019);
      MT207.U001A = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT207.U0018.Elements.Add((SwiftDefinitionElement) MT207.U001A);
      MT207.U0017.Elements.Add((SwiftDefinitionElement) MT207.U0018);
      MT207.U001B = new SwiftTagDefinition("AccountServicingInstitution_A_52C", "Account Servicing Institution");
      MT207.U001B.TagName = ":52C:/";
      MT207.U001C = new SwiftTagSubItemDefinition("PartyIdentifier", "PartyIdentifier field with a maximum length of 34 characters");
      MT207.U001B.Elements.Add((SwiftDefinitionElement) MT207.U001C);
      MT207.U0017.Elements.Add((SwiftDefinitionElement) MT207.U001B);
      MT207.U0002.Elements.Add((SwiftDefinitionElement) MT207.U0017);
      MT207.U001D = new SwiftTagDefinition("SenderToReceiverInformation_A_72", "Sender To Receiver Information");
      MT207.U001D.TagName = ":72:";
      MT207.U001D.Mandatory = false;
      MT207.U001E = new SwiftTagSubItemDefinition("Line1", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x]");
      MT207.U001D.Elements.Add((SwiftDefinitionElement) MT207.U001E);
      MT207.U001F = new SwiftTagSubItemDefinition("Line2", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT207.U001F.Mandatory = false;
      MT207.U001D.Elements.Add((SwiftDefinitionElement) MT207.U001F);
      MT207.U007F = new SwiftTagSubItemDefinition("Line3", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT207.U007F.Mandatory = false;
      MT207.U001D.Elements.Add((SwiftDefinitionElement) MT207.U007F);
      MT207.U0080 = new SwiftTagSubItemDefinition("Line4", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT207.U0080.Mandatory = false;
      MT207.U001D.Elements.Add((SwiftDefinitionElement) MT207.U0080);
      MT207.U0081 = new SwiftTagSubItemDefinition("Line5", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT207.U0081.Mandatory = false;
      MT207.U001D.Elements.Add((SwiftDefinitionElement) MT207.U0081);
      MT207.U0082 = new SwiftTagSubItemDefinition("Line6", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT207.U0082.Mandatory = false;
      MT207.U001D.Elements.Add((SwiftDefinitionElement) MT207.U0082);
      MT207.U0002.Elements.Add((SwiftDefinitionElement) MT207.U001D);
      MT207.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT207.U0002);
      MT207.U0083 = new SwiftTagSequenceDefinition("SequenceB", "Transaction Details");
      MT207.U0083.Multiple = true;
      MT207.U0084 = new SwiftTagDefinition("TransactionReference_B_21", "Transaction Reference");
      MT207.U0084.TagName = ":21:";
      MT207.U0086 = new SwiftTagSubItemDefinition("Reference", "Reference Number");
      MT207.U0084.Elements.Add((SwiftDefinitionElement) MT207.U0086);
      MT207.U0083.Elements.Add((SwiftDefinitionElement) MT207.U0084);
      MT207.U0087 = new SwiftTagDefinition("InstructionCode_B_23E", "Instruction Code");
      MT207.U0087.TagName = ":23E:";
      MT207.U0087.Mandatory = false;
      MT207.U0087.Multiple = true;
      MT207.U0088 = new SwiftTagSubItemDefinition("InstructionCode", "Instruction Code");
      MT207.U0087.Elements.Add((SwiftDefinitionElement) MT207.U0088);
      MT207.U0089 = new SwiftTagSubItemDefinition("AdditionalInformation", "Additional Information");
      MT207.U0089.Mandatory = false;
      MT207.U008A = new SwiftTagSubItemDefinition("AdditionalInformation_1", "Additional Information");
      MT207.U0089.Elements.Add((SwiftDefinitionElement) MT207.U008A);
      MT207.U0087.Elements.Add((SwiftDefinitionElement) MT207.U0089);
      MT207.U0083.Elements.Add((SwiftDefinitionElement) MT207.U0087);
      MT207.U008B = new SwiftTagDefinition("CurrencyTransactionAmount_B_32B", "Currency/Transaction Amount");
      MT207.U008B.TagName = ":32B:";
      MT207.U008C = new SwiftTagSubItemDefinition("Currency", "Currency Code");
      MT207.U008B.Elements.Add((SwiftDefinitionElement) MT207.U008C);
      MT207.U008D = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT207.U008B.Elements.Add((SwiftDefinitionElement) MT207.U008D);
      MT207.U0083.Elements.Add((SwiftDefinitionElement) MT207.U008B);
      MT207.U008E = new SwiftTagChoiceDefinition("Choice", "");
      MT207.U008E.Mandatory = false;
      MT207.U008E.Multiple = true;
      MT207.U008F = new SwiftTagDefinition("Intermediary_B_56A", "Intermediary");
      MT207.U008F.TagName = ":56A:";
      MT207.U0090 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT207.U0090.Mandatory = false;
      MT207.U008F.Elements.Add((SwiftDefinitionElement) MT207.U0090);
      MT207.U0091 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT207.U008F.Elements.Add((SwiftDefinitionElement) MT207.U0091);
      MT207.U008E.Elements.Add((SwiftDefinitionElement) MT207.U008F);
      MT207.U0092 = new SwiftTagDefinition("Intermediary_B_56D", "Intermediary");
      MT207.U0092.TagName = ":56D:";
      MT207.U0093 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT207.U0093.Mandatory = false;
      MT207.U0092.Elements.Add((SwiftDefinitionElement) MT207.U0093);
      MT207.U0094 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT207.U0092.Elements.Add((SwiftDefinitionElement) MT207.U0094);
      MT207.U008E.Elements.Add((SwiftDefinitionElement) MT207.U0092);
      MT207.U0083.Elements.Add((SwiftDefinitionElement) MT207.U008E);
      MT207.U0095 = new SwiftTagChoiceDefinition("Choice", "");
      MT207.U0095.Mandatory = false;
      MT207.U0095.Multiple = true;
      MT207.U0096 = new SwiftTagDefinition("AccountWithInstitution_B_57A", "Account With Institution");
      MT207.U0096.TagName = ":57A:";
      MT207.U0097 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT207.U0097.Mandatory = false;
      MT207.U0096.Elements.Add((SwiftDefinitionElement) MT207.U0097);
      MT207.U0098 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT207.U0096.Elements.Add((SwiftDefinitionElement) MT207.U0098);
      MT207.U0095.Elements.Add((SwiftDefinitionElement) MT207.U0096);
      MT207.U0099 = new SwiftTagDefinition("AccountWithInstitution_B_57C", "Account With Institution");
      MT207.U0099.TagName = ":57C:/";
      MT207.U009A = new SwiftTagSubItemDefinition("PartyIdentifier", "");
      MT207.U0099.Elements.Add((SwiftDefinitionElement) MT207.U009A);
      MT207.U0095.Elements.Add((SwiftDefinitionElement) MT207.U0099);
      MT207.U009B = new SwiftTagDefinition("AccountWithInstitution_B_57D", "Account With Institution");
      MT207.U009B.TagName = ":57D:";
      MT207.U009C = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT207.U009C.Mandatory = false;
      MT207.U009B.Elements.Add((SwiftDefinitionElement) MT207.U009C);
      MT207.U009D = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT207.U009B.Elements.Add((SwiftDefinitionElement) MT207.U009D);
      MT207.U0095.Elements.Add((SwiftDefinitionElement) MT207.U009B);
      MT207.U0083.Elements.Add((SwiftDefinitionElement) MT207.U0095);
      MT207.U009E = new SwiftTagChoiceDefinition("Choice", "");
      MT207.U009E.Multiple = true;
      MT207.U009F = new SwiftTagDefinition("BeneficiaryInstitution_B_58A", "Beneficiary Institution");
      MT207.U009F.TagName = ":58A:";
      MT207.U0001U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT207.U0001U0002.Mandatory = false;
      MT207.U009F.Elements.Add((SwiftDefinitionElement) MT207.U0001U0002);
      MT207.U0002U0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT207.U009F.Elements.Add((SwiftDefinitionElement) MT207.U0002U0002);
      MT207.U009E.Elements.Add((SwiftDefinitionElement) MT207.U009F);
      MT207.U0003U0002 = new SwiftTagDefinition("BeneficiaryInstitution_B_58D", "Beneficiary Institution");
      MT207.U0003U0002.TagName = ":58D:";
      MT207.U0004U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT207.U0004U0002.Mandatory = false;
      MT207.U0003U0002.Elements.Add((SwiftDefinitionElement) MT207.U0004U0002);
      MT207.U0005U0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT207.U0003U0002.Elements.Add((SwiftDefinitionElement) MT207.U0005U0002);
      MT207.U009E.Elements.Add((SwiftDefinitionElement) MT207.U0003U0002);
      MT207.U0083.Elements.Add((SwiftDefinitionElement) MT207.U009E);
      MT207.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT207.U0083);
    }

    public class SequenceAClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT207.U0002;
        }
      }

      [Description("Sender’s Reference")]
      public Tag20 SendersReference_A_20
      {
        get
        {
          return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U0003);
        }
      }

      [Description("Sender’s Reference")]
      public Tag20 Tag20_SendersReference_A
      {
        get
        {
          return this.SendersReference_A_20;
        }
      }

      [Description("Specified Reference of the Ordering Institution")]
      public Tag21R SpecifiedReferenceOfTheOrderingInstitution_A_21R
      {
        get
        {
          return new Tag21R((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U0005);
        }
      }

      [Description("Specified Reference of the Ordering Institution")]
      public Tag21R Tag21R_SpecifiedReferenceOfTheOrderingInstitution_A
      {
        get
        {
          return this.SpecifiedReferenceOfTheOrderingInstitution_A_21R;
        }
      }

      [Description("Message Index/Total")]
      public MT207.SequenceAClass.Tag28D MessageIndexTotal_A_28D
      {
        get
        {
          return new MT207.SequenceAClass.Tag28D((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U0007);
        }
      }

      [Description("Message Index/Total")]
      public MT207.SequenceAClass.Tag28D Tag28D_MessageIndexTotal_A
      {
        get
        {
          return this.MessageIndexTotal_A_28D;
        }
      }

      [Description("Requested Execution Date")]
      public Tag30 RequestedExecutionDate_A_30
      {
        get
        {
          return new Tag30((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U000F);
        }
      }

      [Description("Requested Execution Date")]
      public Tag30 Tag30_RequestedExecutionDate_A
      {
        get
        {
          return this.RequestedExecutionDate_A_30;
        }
      }

      [Description("Initiating Institution")]
      public Tag51A InitiatingInstitution_A_51A
      {
        get
        {
          return new Tag51A((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U0011);
        }
      }

      [Description("Initiating Institution")]
      public Tag51A Tag51A_InitiatingInstitution_A
      {
        get
        {
          return this.InitiatingInstitution_A_51A;
        }
      }

      [Description("Ordering Institution")]
      public Tag52G OrderingInstitution_A_52G
      {
        get
        {
          return new Tag52G((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U0014);
        }
      }

      [Description("Ordering Institution")]
      public Tag52G Tag52G_OrderingInstitution_A
      {
        get
        {
          return this.OrderingInstitution_A_52G;
        }
      }

      [Description("Account Servicing Institution")]
      public Tag52A AccountServicingInstitution_A_52A
      {
        get
        {
          return new Tag52A((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U0018);
        }
      }

      [Description("Account Servicing Institution")]
      public Tag52A Tag52A_AccountServicingInstitution_A
      {
        get
        {
          return this.AccountServicingInstitution_A_52A;
        }
      }

      [Description("Account Servicing Institution")]
      public Tag52C AccountServicingInstitution_A_52C
      {
        get
        {
          return new Tag52C((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U001B);
        }
      }

      [Description("Account Servicing Institution")]
      public Tag52C Tag52C_AccountServicingInstitution_A
      {
        get
        {
          return this.AccountServicingInstitution_A_52C;
        }
      }

      [Description("Sender To Receiver Information")]
      public Tag72 SenderToReceiverInformation_A_72
      {
        get
        {
          return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U001D);
        }
      }

      [Description("Sender To Receiver Information")]
      public Tag72 Tag72_SenderToReceiverInformation_A
      {
        get
        {
          return this.SenderToReceiverInformation_A_72;
        }
      }

      internal SequenceAClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public class Tag28D : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("28D", value);
          }
        }

        internal Tag28D(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }
    }

    public class SequenceBClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT207.U0083;
        }
      }

      [Description("Transaction Reference")]
      public Tag21 TransactionReference_B_21
      {
        get
        {
          return new Tag21((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U0084);
        }
      }

      [Description("Transaction Reference")]
      public Tag21 Tag21_TransactionReference_B
      {
        get
        {
          return this.TransactionReference_B_21;
        }
      }

      [Description("Instruction Code")]
      public MT207.SequenceBClass.Tag23E[] InstructionCode_B_23E
      {
        get
        {
          int index = -1;
          List<MT207.SequenceBClass.Tag23E> list = new List<MT207.SequenceBClass.Tag23E>();
          int count;
          do
          {
            ++index;
            MT207.SequenceBClass.Tag23E tag23E = new MT207.SequenceBClass.Tag23E((SwiftElement) this, index, (SwiftDefinitionElement) MT207.U0087);
            count = this.ListTags((SwiftElement) tag23E).Count;
            if (count > 0)
              list.Add(tag23E);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Instruction Code")]
      public MT207.SequenceBClass.Tag23E[] Tag23E_InstructionCode_B
      {
        get
        {
          return this.InstructionCode_B_23E;
        }
      }

      [Description("Currency/Transaction Amount")]
      public Tag32B CurrencyTransactionAmount_B_32B
      {
        get
        {
          return new Tag32B((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U008B);
        }
      }

      [Description("Currency/Transaction Amount")]
      public Tag32B Tag32B_CurrencyTransactionAmount_B
      {
        get
        {
          return this.CurrencyTransactionAmount_B_32B;
        }
      }

      [Description("Intermediary")]
      public Tag56A Intermediary_B_56A
      {
        get
        {
          return new Tag56A((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U008F);
        }
      }

      [Description("Intermediary")]
      public Tag56A Tag56A_Intermediary_B
      {
        get
        {
          return this.Intermediary_B_56A;
        }
      }

      [Description("Intermediary")]
      public Tag56D Intermediary_B_56D
      {
        get
        {
          return new Tag56D((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U0092);
        }
      }

      [Description("Intermediary")]
      public Tag56D Tag56D_Intermediary_B
      {
        get
        {
          return this.Intermediary_B_56D;
        }
      }

      [Description("Account With Institution")]
      public Tag57A AccountWithInstitution_B_57A
      {
        get
        {
          return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U0096);
        }
      }

      [Description("Account With Institution")]
      public Tag57A Tag57A_AccountWithInstitution_B
      {
        get
        {
          return this.AccountWithInstitution_B_57A;
        }
      }

      [Description("Account With Institution")]
      public MT207.SequenceBClass.Tag57C AccountWithInstitution_B_57C
      {
        get
        {
          return new MT207.SequenceBClass.Tag57C((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U0099);
        }
      }

      [Description("Account With Institution")]
      public MT207.SequenceBClass.Tag57C Tag57C_AccountWithInstitution_B
      {
        get
        {
          return this.AccountWithInstitution_B_57C;
        }
      }

      [Description("Account With Institution")]
      public Tag57D AccountWithInstitution_B_57D
      {
        get
        {
          return new Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U009B);
        }
      }

      [Description("Account With Institution")]
      public Tag57D Tag57D_AccountWithInstitution_B
      {
        get
        {
          return this.AccountWithInstitution_B_57D;
        }
      }

      [Description("Beneficiary Institution")]
      public MT207.SequenceBClass.Tag58A BeneficiaryInstitution_B_58A
      {
        get
        {
          return new MT207.SequenceBClass.Tag58A((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U009F);
        }
      }

      [Description("Beneficiary Institution")]
      public MT207.SequenceBClass.Tag58A Tag58A_BeneficiaryInstitution_B
      {
        get
        {
          return this.BeneficiaryInstitution_B_58A;
        }
      }

      [Description("Beneficiary Institution")]
      public MT207.SequenceBClass.Tag58D BeneficiaryInstitution_B_58D
      {
        get
        {
          return new MT207.SequenceBClass.Tag58D((SwiftElement) this, 0, (SwiftDefinitionElement) MT207.U0003U0002);
        }
      }

      [Description("Beneficiary Institution")]
      public MT207.SequenceBClass.Tag58D Tag58D_BeneficiaryInstitution_B
      {
        get
        {
          return this.BeneficiaryInstitution_B_58D;
        }
      }

      internal SequenceBClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public MT207.SequenceBClass.Tag23E AddInstructionCode_B_23E()
      {
        return new MT207.SequenceBClass.Tag23E((SwiftElement) this, this.InstructionCode_B_23E.Length, (SwiftDefinitionElement) MT207.U0087)
        {
          Value = string.Empty
        };
      }

      public void RemoveInstructionCode_B_23E(MT207.SequenceBClass.Tag23E tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public class Tag23E : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("23E", value);
          }
        }

        internal Tag23E(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Tag57C : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("57C", value);
          }
        }

        internal Tag57C(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Tag58A : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("58A", value);
          }
        }

        internal Tag58A(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Tag58D : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("58D", value);
          }
        }

        internal Tag58D(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }
    }
  }
}
